package com.mes.schedule.ScheduleOperation.domain;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.BatchSize;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.GenericGenerator;
import org.springframework.context.annotation.Lazy;

import com.mes.common.domain.BasicModel;


/**
 * 分批事件
 * date: 2017-3-12 <br/>  
 * @author lcs  
 * @version   
 * @since JDK 1.8
 */
@Entity()
@org.hibernate.annotations.Entity(dynamicInsert=false,dynamicUpdate=false)
@Table(name = "T_OPERATION_GROUPTASKS")
@BatchSize(size=20)
@Lazy(value=true)
public class OperationGroupTasks extends BasicModel{
		
	/**
	 *  唯一号		
	 */
	@Id
	@GenericGenerator(name = "scheduleOperationUid", strategy = "assigned")
	@Column(name="UNIQUEID")
	private String scheduleOperationUid;
	
	@Override
	public String getUuid() {
		return scheduleOperationUid;
	}

	@Override
	public void setUuid(String uuid) {
		this.scheduleOperationUid = uuid;
	}
	

	/**
	 * 	应该处理该事件的调度方案唯一号	
	 */	
	@Column(name="SCHEDULEUID")
	private String scheduleUid;
	
	@Column(name="DRAWINGID")
	protected String drawingId;
	
	@Column(name="BATCHNUM")
	protected String batchNum;
	
	@Column(name="OPERATIONIDDESC")
	private String operationIdDesc;
	
	@Column(name="PARENTOPUNIQUEID")
	protected String parentUniqueId;

	
	public String getScheduleOperationUid() {
		return scheduleOperationUid;
	}

	public void setScheduleOperationUid(String scheduleOperationUid) {
		this.scheduleOperationUid = scheduleOperationUid;
	}


	public String getScheduleUid() {
		return scheduleUid;
	}

	public void setScheduleUid(String scheduleUid) {
		this.scheduleUid = scheduleUid;
	}

	
	public String getDrawingId() {
		return drawingId;
	}

	public void setDrawingId(String drawingId) {
		this.drawingId = drawingId;
	}

	
	public String getBatchNum() {
		return batchNum;
	}

	public void setBatchNum(String batchNum) {
		this.batchNum = batchNum;
	}

	
	public String getParentUniqueId() {
		return parentUniqueId;
	}

	public void setParentUniqueId(String parentUniqueId) {
		this.parentUniqueId = parentUniqueId;
	}

	
	public String getOperationIdDesc() {
		return operationIdDesc;
	}

	public void setOperationIdDesc(String operationIdDesc) {
		this.operationIdDesc = operationIdDesc;
	}



	
}
